﻿@namespace MudBlazor.UnitTests.TestComponents

<div class="d-flex">
    <MudButton OnClick="OpenDialog" Variant="Variant.Filled" Color="Color.Primary">
        Open dialog
    </MudButton>
</div>

<MudDialog @bind-IsVisible="visible">
    <TitleContent>
        <MudText Typo="Typo.h6">
            <MudIcon Icon="@Icons.Material.Filled.Edit" Class="mr-3"/> Edit rating
        </MudText>
    </TitleContent>
    <DialogContent>
        <p>Close and re-open me by clicking out of the dialog. </p>
    </DialogContent>
    <DialogActions>
    </DialogActions>
</MudDialog>

@code { 
    private bool visible;
    private void OpenDialog() => visible = true;
}
